startIntentSenderForResult
Start new IntentSender with options, if able, for which you would like a result when it finished.
In Android 4.1+ additional options were introduced to allow for more control on activity launch animations. Applications can use this method along with ActivityOptionsCompat to use these animations when available. When run on versions of the platform where this feature does not exist the activity will be launched normally.
Parameters
Origin activity to launch from.
The IntentSender to launch.
If >= 0, this code will be returned in onActivityResult() when the activity exits.
If non-null, this will be provided as the intent parameter to sendIntent.
Intent flags in the original IntentSender that you would like to change.
Desired values for any bits set in flagsMask
Always set to 0.
Additional options for how the Activity should be started. May be null if there are no options. See ActivityOptionsCompat for how to build the Bundle supplied here; there are no supported definitions for building it manually.